import 'package:flutter/material.dart';

import 'package:get/get.dart';
import 'package:permission_handler/permission_handler.dart';
import 'package:zebra_sdk/zebra_sdk.dart';

import '../controllers/raw_instore_controller.dart';

class RawInstoreView extends GetView<RawInstoreController> {
  const RawInstoreView({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    Permission.bluetoothConnect.request();
    // Permission.bluetoothScan.request();
    return Scaffold(
      appBar: AppBar(
        title: const Text('RawInstoreView'),
        centerTitle: true,
      ),
      body: Center(
        child: ElevatedButton(
          onPressed: () {
            ZebraSdk.flutterPrintData("~JC");
          },
          child: Text("print"),
        )
      ),
    );
  }
}
